<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main extends CI_Controller {

	public function index()
	{
		$this->load->model('offers');
		
		$newest_offers = $this->offers->get_newest();
		$this->template->set('newest_offers', $newest_offers);
		
		$this->template->render();
	}
}

/* End of file main.php */
/* Location: ./application/controllers/main.php */
